#include "head.h"

int net_pwd(request_t *request, int net_fd) {
    // 获取当前路径
    response_t response;
    memset(&response, 0, sizeof(response_t));
    response.status = 0;
    char path[100] = {0};
    strcpy(path, "/");
    strcat(path, request->user_name);
    strcat(path, "/");
    strcat(path, request->path);
    strcpy(response.args, path);
    // printf("%s\n", response.args);
    send(net_fd, &response, sizeof(response_t), 0);
    return 0;
}
